package com.example.ordersys.tools;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:咭咭熊
 * Date:2021 - 07 - 31
 * Time:14:53
 */

import lombok.Data;

/**
 * 统一返回封装：后端给前端的返回封装
 */
@Data
public class ResponseBody<T> {
    private int status;
    private String msg;
    private T data;//数据

    public ResponseBody(int status,String msg,T data){
        this.status = status;
        this.msg = msg;
        this.data = data;

    }
}
